package 原型模式.demo.复制简历;


/**
 * @author zyl
 * @Description
 * @since 2024/1/3 15:49
 */

public class Client {
    public static void main(String[] args) {
        Resume resume = new Resume("大鸟","男","25",new WorkExperience("2022~2024","我的公司"));
        Resume resume1 = (Resume) resume.clone();
        resume1.setWorkExperience("1000","哦哦哦");
        resume1.setName("方法");
        Resume resume2 = (Resume) resume.clone();
        resume2.setWorkExperience("2000","永远永远");
        resume2.setName("凯凯");
        resume.display();
        resume1.display();
        resume2.display();
    }
}
